package com.vidaappv1;


import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class AccountInfo extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_account_info);
		
		Button purchasehistorybutton = (Button)findViewById(R.id.button1);
		Button creditcardinfobutton = (Button)findViewById(R.id.btnSitDown);
		Button accountbalancebutton = (Button)findViewById(R.id.btnTakeAway);
		Button placeorderbutton = (Button)findViewById(R.id.button4);
		
		purchasehistorybutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent purchasehistoryintent = new Intent(getApplicationContext(),PurchaseHistory.class);
				startActivity(purchasehistoryintent);
			}
		});
		
		creditcardinfobutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				//Intent creditcardinfointent = new Intent(getApplicationContext(),UpdateCreditCardInfo.class);
				//startActivity(creditcardinfointent);
				Toast.makeText(getApplicationContext(), "This function has been disabled", Toast.LENGTH_LONG).show();
			}
		});
		
		accountbalancebutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent accountbalanceintent = new Intent(getApplicationContext(),AccountBalance.class);
				startActivity(accountbalanceintent);
			}
		});
		
		placeorderbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent placeorderintent = new Intent(getApplicationContext(),BigMenu.class);
				startActivity(placeorderintent);
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.account_info, menu);
		return true;
	}

}
